package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_SplitMergeMain", description = "条码拆合主表")
@TableName(value = "WMS_SplitMergeMain")
public class WmsSplitMergeMain extends FBaseEntity implements Serializable {


    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("拆合单号")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billNo")
    private String billNo;
    
    @ApiModelProperty("订单类型")
    @TableField(value = "billType")
    private Long billType;
    
    @ApiModelProperty("条码仓库")
    @TableField(value = "wHID")
    private Long wHID;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("合并条码新批次或拆分条码批次")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "batchNum")
    private String batchNum;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("制单人")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "maker")
    private String maker;
    
    @ApiModelProperty("订单日期")
    @TableField(value = "billDate")
    private Date billDate;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("主条码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "barCode")
    private String barCode;
    
    @ApiModelProperty("物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("主条码数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "hQty")
    private String hQty;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "hRemark")
    private String hRemark;
    
    @ApiModelProperty("拆分类型（数量/标包）")
    @TableField(value = "hSplitType")
    private Long hSplitType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("拆分数量或合并数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "hSplitQty")
    private String hSplitQty;






}

